//
//  LessonPreviewView.h
//  Digital Seamonsters
//
//  Created by Adam Cue on 2/6/11.
//  Copyright Adam Cue 2011.
//
//  This program is licensed and distributed under the terms of the GNU General Public License.  
//  The text for the license can be found in the license.txt file in this project.
//

#import <UIKit/UIKit.h>
#import "AsyncImageView.h"

@protocol LessonPreviewViewDelegate
- (void)selected:(int)index withImage:(UIImage *)selectedImage;
- (void)deleted:(int)index;
@end

@interface LessonPreviewView : AsyncImageView <UIWebViewDelegate, UIAlertViewDelegate>{
	int index;
	id <LessonPreviewViewDelegate> delegate;
	BOOL saved;
	UITapGestureRecognizer * _tapGesture;
}

#pragma mark ExternalMethods
- (id)initWithFrame:(CGRect)frame index:(int)selectedIndex;

@property(nonatomic, retain) UITapGestureRecognizer * tapGesture;
@property(nonatomic, assign) id <LessonPreviewViewDelegate> delegate;
@property int index;
@property BOOL saved;
@end
